﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReportUserControl.ascx.cs" Inherits="DHYHN.ASPNET.HoiNghi.UserControls.ReportUserControl" %>
<script src="../Scripts/curvycorners.src.js" type="text/javascript"></script>
<link href="../Styles/DataListProductStylesheet.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    .style1
    {
        width: 100%;
    }
</style>
<div class="middleItem">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="lbtPri" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="LinkButton3" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="lbtNext" EventName="Click" />
    
    <asp:AsyncPostBackTrigger ControlID="LinkButton2" EventName="Click" /> 
     </Triggers>     
     <ContentTemplate>     
            <table style="width:97%; table-layout:fixed;">
                <tr>
                    <td style="width:60%;">
                        &nbsp;&nbsp;Báo cáo từ số
                        <asp:Label ID="lblStartTop" runat="server" Text="1"></asp:Label>
                            &nbsp;đến số
                        <asp:Label ID="lblEndTop" runat="server" Text="9"></asp:Label>
                            &nbsp;trong trong tổng số
                        <asp:Label ID="lblMaxTop" runat="server" Text="n"></asp:Label>
                            &nbsp; bản báo cáo
                    </td>
                    <td style="text-align:right; width:35%;" align="right">
                        <asp:LinkButton ID="LinkButton3" runat="server" onclick="lbtPri_Click">Back</asp:LinkButton>
                        &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" onclick="lbtNext_Click">Next</asp:LinkButton>
                    </td>
                </tr>
            </table>
            <asp:DataList ID="DataList1" runat="server" Width="100%" 
                DataKeyField="reportid"  RepeatColumns="4">
                <ItemTemplate>
                <div class="product" style="font-family:Times New Roman;">        
                    <div class="inside" style="height:30px;">
                    <asp:Label Font-Size="12pt" ID="ProductNameLabel"  Font-Bold="True" runat="server" 
                        Text='<%# Eval("title") %>' />
                    </div>
                      <div class="inside" style="height:200px; background-image: url('../Images/ReportIcon.bmp'); background-repeat: no-repeat;">            
                          <%--<asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/ReportIcon.bmp" runat="server" /> --%>           
                                                   

                    </div>    
                    <table style="width:100%; ">
                        <colgroup>
                            <col style="width:50%" />
                            <tr>
                                <td valign="middle">
                                    <asp:Label ID="PriceLabel" runat="server" Font-Bold="True" Font-Size="14pt" 
                                        Text='<%# Eval("userid") %>' />
                                    </td>
                                <td>
                                    <asp:LinkButton ID="LinkButton1" runat="server" Font-Size="10pt" 
                                        PostBackUrl='<%#"../ReportDetail.aspx?Index="+ Eval("reportid") %>'>Chi Tiết</asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" valign="middle">
                                    <asp:Label ID="lblName" runat="server" Text='<%# Eval("address") %>'></asp:Label>
                                </td>
                            </tr>
                        </colgroup>
                    </table>
                   </div>
                </ItemTemplate>
            </asp:DataList>        
            <table style="width:97%; table-layout:fixed;">
                <tr>
                    <td style="width:60%;">
                        &nbsp;&nbsp;Báo cáo từ số
                        <asp:Label ID="lblStart" runat="server" Text="1"></asp:Label>
                            &nbsp;đến số
                        <asp:Label ID="lblEnd" runat="server" Text="9"></asp:Label>
                            &nbsp;trong trong tổng số
                        <asp:Label ID="lblMax" runat="server" Text="n"></asp:Label>
                            &nbsp;bản báo cáo
                    </td>
                    <td style="text-align:right; width:35%;" align="right">
                        <asp:LinkButton ID="lbtPri" runat="server" onclick="lbtPri_Click">Back</asp:LinkButton>
                        &nbsp;<asp:LinkButton ID="lbtNext" runat="server" onclick="lbtNext_Click">Next</asp:LinkButton>
                    </td>
                </tr>
            </table>    
     </ContentTemplate>
    </asp:UpdatePanel>
</div>   
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:HoiNghiConnectionString %>" 
    SelectCommand="SELECT tbResports.reportid, tbResports.userid, tbResports.title, tbResports.description, tbResports.docfileURL, tbResports.slidefileURL, tbResports.filesize, tbResports.created, tbResports.status, tbUsers.userid AS Expr1, tbUsers.firstName, tbUsers.lastName, tbUsers.birthday, tbUsers.address FROM tbResports INNER JOIN tbUsers ON tbResports.userid = tbUsers.userid">
</asp:SqlDataSource>
   